/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DTO;

import java.sql.Date;

/**
 *
 * @author Endlesslove
 */
public class ChiTietBaoCaoTon  implements  Idata
{
    private String MaChiTietBaoCaoTon;
    public String MaBaoCaoTon;
    public String MaSach;
    public int TonDau;
    public int PhatSinh;
    public int TonCuoi;
    public ChiTietBaoCaoTon(String ...param)
    {
        MaChiTietBaoCaoTon = param[0];
        MaBaoCaoTon = param[1];
        MaSach = param[2];
        TonDau = Integer.parseInt(param[3]);
        PhatSinh = Integer.parseInt(param[4]);
        TonCuoi = Integer.parseInt(param[5]);
    }
    
    @Override
    public boolean Delete() 
    {
        return new BUS.ChiTietBaoCaoTon().Delete(this);
    }

    @Override
    public boolean Insert() 
    {
        return new BUS.ChiTietBaoCaoTon().Insert(this);
    }

    @Override
    public boolean Update() 
    {
        return new BUS.ChiTietBaoCaoTon().Update(this);
    }

    @Override
    public Object[] getObjects() 
    {
        return new Object[]
        {
            MaChiTietBaoCaoTon,MaBaoCaoTon, MaSach, TonDau, PhatSinh, TonCuoi
        };
    }

    @Override
    public String getID() 
    {
        return MaChiTietBaoCaoTon;
    }
    
}
